package com.nt.thah.constant;

/**
 * @Description: 系统编码
 * @author: ls
 * @Date: 2020/7/10 14:25
 */
public class SysCode {

    /**
     * 短信验证码成功标志
     */
    public static final String SMS_CODE_SUCCESS_CODE = "0";

    /**
     * redis中微信授权的全局accessToken
     */
    public static final String WX_AUTH_GLOBAL_ACCESS_TOKEN = "wxAuth:globalAccessToken";

    /**
     * redis中产品详情
     */
    public static String REDIS_KEY_PRODUCT_INFO = "productDetail:";

    /**
     * redis中oss的sts信息
     */
    public static String REDIS_KEY_OSS_STS_INFO = "ossStsInfo";

    /**
     * token失效时间
     */
    public static final int TOKEN_TIMEOUT = 4 * 60 * 60;

    /**
     * 用户信息标识
     */
    public static final String LOGIN_USER = "login-user";
    /**
     * token盐
     */
    public static final String TOKEN_SECRET_KEY = "fb983-527a95|0a01e0c-2ad2f0|c1306-13b1";

    /**
     * token预过期小时
     */
    public static final long TOKEN_REFRESH_HOUR = 1;

    /**
     * token后台失效时间
     */
    public static final int TOKEN_MANAGE_TIMEOUT = 8 * 60 * 60;

    /**
     * redis中微信验证码的key
     */
    public static final String REDIS_KEY_WX_VERIFY_CODE = "wx:verifyCode:";

    /**
     * 微信头像的开头
     */
    public static String WX_HEAD_IMG_START_STR = "thirdwx.qlogo.cn";

    /**
     * redis中产品详情
     */
    public static String REDIS_KEY_PRODUCT_DETAIL_INFO = "productDetail:id:";

    /**
     * redis中产品基础信息
     */
    public static String REDIS_KEY_PRODUCT_BASE_INFO = "productBase:id:";

    /**
     * redis中系统配置数据
     */
    public static String REDIS_KEY_SYS_CONFIG = "sysConfig";

    /**
     * redis中代理用户信息key
     */
    public static String REDIS_KEY_USER_INFO = "user:id:";


    /**
     * redis中分布式id
     */
    public static String REDIS_KEY_GLOBAL_ID = "globalId:";

    /**
     * redis中用户信息key
     */
    public static String REDIS_KEY_ACCOUNT_INFO = "scoreAccount:";

    /**
     * redis中用户信息key
     */
    public static String REDIS_KEY_CARBON_INFO = "carbonAccount:";
}
